function y = Diagonal_8(x)
% Diagonal 8 function
% x0=ones(n,1); 
n=length(x); y=0;
for i=1:n
    y=y+x(i)*exp(x(i))-2*x(i)-(x(i))^2;
end    


